package com.example.tests;

import org.junit.*;
import static org.junit.Assert.*;

import com.example.pages.FilmsPage;

public class ChooseFilmTest extends TestBase {

	@Test
	public void testChooseFilm() throws Exception {
		FilmsPage filmPage = goToMainPage()
			.loginWithValidCredentials("admin", "admin")
			.gotoHomePage()
			.selectExistFilm("The Matrix");
			
		assertTrue("The title is not valid",!driver.getTitle().equals("http://localhost/php4dvd/#!/sort/name%20asc/"));
		
		filmPage.logout();
	}

}
